<template>
  <div class="demo">
    <h2>学校名称:{{ name | mySlice}}</h2>
    <h2>学校地址:{{ schoolAddress }}</h2>
    <button @click="showName">点我提示学校名</button><br/>
    <input type="text" v-fbind:value="schoolAddress"/>
  </div>
</template>

<script>
import { hunhe } from '../mixin'
import { hunhe2 } from '../mixin'
// 默认暴漏 简写
export default {
  name: 'SchoolMixin',
  data() {
    return {
      name: '宋营小学sss',
      schoolAddress: "河南省商丘市睢阳区路河乡",
    };
  },
  mixins:[hunhe,hunhe2]
}
</script>

<style scoped>
    .demo{
        background-color: red;
    }
</style>
